package com.rmt.www.daoImpl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.rmt.www.vo.History;
import com.rmt.www.vo.TestArtifactHistory;

public class TestArtifactHistoryRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int ix) throws SQLException {
		
		return new TestArtifactHistory(
				rs.getInt("id"),
				rs.getInt("pid"),
				rs.getString("testcaseType"),
				rs.getString("title"),
				rs.getString("priority"),
				rs.getString("precondition"),
				rs.getString("input"),
				rs.getString("testdata"),
				rs.getString("steps"),
				rs.getString("expectedresult"),
				rs.getString("postcondition"),
				rs.getInt("effort"),
				rs.getString("cost"),
				rs.getString("risk"),
				rs.getString("comment"),
				rs.getInt("createrid"),
				rs.getTimestamp("createdtime"),
				rs.getInt("updaterid"),
				rs.getTimestamp("updatedtime"),
				rs.getInt("updatedtimes"),
				rs.getString("version"),
				rs.getString("status"),
				rs.getInt("testartifactid"));
	}
}
